package com.bob.debt.callback.impl;

import com.bob.debt.callback.AbstractQuotaCallbackTemplate;
import com.bob.debt.callback.factory.MsgLabelAdaptor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

/**
 * 申请机动额度异常反馈数据处理
 */
@Slf4j
@MsgLabelAdaptor(msgLabel = "otcs.991.001.02")
@Component
public class ApplyQuotaExceptionHandler extends AbstractQuotaCallbackTemplate {

    @Override
    @Async
    public void process(String callbackData) {
        try {
            Thread.sleep(5000);
            System.out.println("ApplyQuotaExceptionHandler正在处理");
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }

}
